package cn.com.oidreams.aliyun.robot.entity;

import cn.com.oidreams.common.annotations.Required;
import lombok.Getter;
import lombok.Setter;

/***
 ** @category 请用一句话描述这个类的用途
 ** @author qing.yunhui
 ** @email: qingyh@glodon.com
 ** @createTime: 2021-11-24 17:10
 **/
@Getter
@Setter
public class BaseRequest<T> {
    /**
     * <p>时间戳</p>
     * */
    @Required(errorMsg = "时间戳不能为空或null",remark="时间戳",classParse = false)
    private long timestamp;
    /**
     * <p>密钥</p>
     */
    @Required(errorMsg = "密钥不能为空",remark="加签的密钥",classParse = false)
    private String secret;
    @Required(errorMsg = "消息类型不能为空",remark="消息类型",classParse = false)
    private String msgtype;
    @Required(errorMsg = "访问令牌不能为空",remark="访问令牌",classParse = false)
    private String accessToken;
}
